package jtk.project4.fleet.event;

import java.util.List;

import jtk.project4.fleet.domain.Vendor;
import jtk.project4.fleet.event.VendorEvent.VendorEventType;
import nl.coderight.jazz.Event;

public class VendorEvent extends Event<VendorEventType>{
	private List<Vendor> vendors;
	public enum VendorEventType {
		LOAD_SUCCESS,
		FILTER, ADD, EDIT, DELETE,
		SUBMIT, CLOSE, CANCEL,
		SELECT, CHANGE, VIEW;
	}

	public VendorEvent(VendorEventType type) {
		super(type);
	}
	
	public List<Vendor> getVendors(){
		return vendors;
	}
	
	public void setVendors(List<Vendor> vendors){
		this.vendors = vendors;
	}
}
